package com.baylor;

import android.app.Application;
import android.content.Intent;
import android.content.IntentFilter;
import android.util.Log;
import com.baylor.broadcast.CheackBroadcastReceiver;

/**
 * Created by ketian on 2014/9/25.
 */
public class MyApplecation extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        // 启动检测推送服务的广播
        Log.d("broadcast", "开启广播");
        IntentFilter filter = new IntentFilter(Intent.ACTION_TIME_TICK);
        CheackBroadcastReceiver receiver = new CheackBroadcastReceiver(this);
        registerReceiver(receiver, filter);
    }

}
